package core.battle
{
	import flash.display.Shape;

	public class TailObject extends GameObject
	{
		public function TailObject()
		{
			super();
		}
		
		private var _size : Number = 2;
		private var _color : uint = 0xFF0066;
		override public function init():void {
			graphics.lineStyle( 1 , _color );
			graphics.moveTo( - _size , -_size );
			graphics.lineTo( -_size , _size );
			graphics.lineTo( _size , _size );
			graphics.lineTo( _size , - _size );
			graphics.lineTo( - _size , - _size );
		}

		override public function update(deltaTime:Number):void {
			if( !isIn() ) {
				visible = false;
			}
			x -= Game.getInstance().forwardSpeed * deltaTime;
		}
	}
}